package cn.com.code.generator.entity;

import cn.com.do1.dsf.common.validator.group.AddGroup;
import cn.com.do1.dsf.common.validator.group.UpdateGroup;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 
 *
 * @author nick
 * @email sunlightcs@gmail.com
 * @date 2021-04-23 01:07:51
 */
@TableName("tb_task_status")
@ApiModel(description = "")
@Data
public class TaskStatus implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
    @ApiModelProperty(value = "ID", example = "1")
    @TableId
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;
	/**
	 * 
	 */
    @ApiModelProperty(value = "", example = "测试001")
    @Length(message="不能超过64个字符", max = 64, groups = {AddGroup.class ,  UpdateGroup.class})
    private String processInstanceId;
	/**
	 * 
	 */
    @ApiModelProperty(value = "", example = "测试001")
    @Length(message="不能超过255个字符", max = 255, groups = {AddGroup.class ,  UpdateGroup.class})
    private String taskDefinitionKey;
	/**
	 * 
	 */
    @ApiModelProperty(value = "", example = "测试001")
    @Length(message="不能超过64个字符", max = 64, groups = {AddGroup.class ,  UpdateGroup.class})
    private String taskId;
	/**
	 * 
	 */
    @ApiModelProperty(value = "", example = "true")
    private Boolean status;
}
